package com.dj.msgtable;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.dj.msgtable.dao")
@SpringBootApplication
//@ServletComponentScan(basePackages = {"com.dj.msgtable.util.CORSFilter"})
@ServletComponentScan
@EnableScheduling
public class MsgtableApplication extends SpringBootServletInitializer {
    public MsgtableApplication()
    {
        super();
        setRegisterErrorPageFilter(false);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(MsgtableApplication.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(MsgtableApplication.class, args);
    }

}
